#include "myframe.h"

MyFrame::MyFrame(wxString title)
	: wxFrame(NULL, -1, title){
	this->_ctrl = new NumTextCtrl(this);

	_bar = new wxMenuBar();
	this->SetMenuBar(_bar);

	_menu = new wxMenu();
	_bar->Append(_menu, _T("按钮"));
	_menu->Append(MENU_TST, _T("功能测试"));
}

void MyFrame::OnTest(wxCommandEvent& event){
	wxLogMessage(_T("This is a test."));
}

BEGIN_EVENT_TABLE(MyFrame, wxFrame)
    EVT_MENU(MENU_TST, MyFrame::OnTest)
END_EVENT_TABLE()
